<template>
    <div @click="goTest">
        {{a}}
        <router-view></router-view>
    </div>
</template>
<script>
export default {
    data() {
        return {
            a: 'hello vue'
        }
    },
    methods: {
        goTest() {
            this.$router.push({name: 'test'})
        }
    },
    mounted() {
        // function testable (target) {
        //     target.prototype.isTestable = true
        // }

        // @testable
        // class MyTestableClass{
        //     constructor(a) {
        //         this.a = a
        //     }
        // }
        // let tester = new MyTestableClass(1)
        // console.log(tester, 'tester')
    },
}
</script>
<style scoped>

</style>
